home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Examples / Printer / HP_DeskJet_CMYK / smakefile < prev    next >
Encoding:
Makefile  |  1999-10-30  |  3.2 KB  |  134 lines

  1. #
  2. # $Id: smakefile 44.5 1999/09/29 13:43:04 olsen Exp olsen $
  3. #
  4. # :ts=8
  5. #
  6.  
  7. .c.o:
  8.     sc $(CFLAGS) $<
  9.  
  10. .asm.o:
  11.     asm $(ASMFLAGS) $<
  12.  
  13. ###############################################################################
  14.  
  15. PROJECT = HP_DeskJet_880C
  16.  
  17. ###############################################################################
  18.  
  19. #############################################################################
  20. #
  21. # Program version
  22. #
  23. #############################################################################
  24.  
  25. VERSION = 44
  26.  
  27. ###############################################################################
  28.  
  29. OPTIMIZE =    optimize opttime optinline optinlocal optschedule
  30. CPU =        any
  31. #CPU =        040
  32. DEBUG =        line
  33. #DEBUG =    symbolflush noopt
  34.  
  35. ###############################################################################
  36.  
  37. ASMFLAGS =    -d
  38. CFLAGS =    idlen=64 comnest streq strmerge nostkchk \
  39.         strsect=code $(OPTIMIZE) cpu=$(CPU) debug=$(DEBUG) \
  40.         params=r commentnest idir=include nover
  41. LFLAGS =    smallcode smalldata noicons quiet
  42.  
  43. ###############################################################################
  44.  
  45. C_FILES =    compression.c data.c density.c dospecial.c \
  46.         init.c locale.c render.c sprintf.c transfer.c
  47.  
  48. HEADERS =    compression.h data.h density.h dospecial.h \
  49.         global.h init.h locale.h printertag.h render.h \
  50.         sprintf.h transfer.h
  51.  
  52. ASM_FILES =    printertag.asm utility.asm
  53.  
  54. OTHER =        smakefile $(PROJECT)_rev.h $(PROJECT)_rev.i $(PROJECT)_rev.rev \
  55.         releasenotes HP_DeskJet_CMYK.doc crank.c
  56.  
  57. SOURCE =    $(C_FILES) $(ASM_FILES) $(HEADERS) $(OTHER)
  58.  
  59. OBJS =        printertag.o \
  60.         compression.o data.o density.o dospecial.o \
  61.         init.o locale.o render.o sprintf.o transfer.o utility.o
  62.  
  63. ###############################################################################
  64.  
  65. LIBS = lib:sc.lib lib:debug.lib lib:amiga.lib
  66.  
  67. ###############################################################################
  68.  
  69. all: tagfiles devs.h $(PROJECT)
  70.  
  71. tagfiles:
  72.     makedir $@
  73.  
  74. $(PROJECT): $(OBJS)
  75.     slink $(OBJS) to $@.debug lib $(LIBS) $(LFLAGS) \
  76.         map $(PROJECT).map,fhx fwidth 32 pwidth 32 swidth 32
  77.     slink $@.debug to $@ noicons nodebug
  78.     @type tagfiles/\#? >t:tags
  79.     @copy t:tags ""
  80.     @delete >nil: t:tags
  81.  
  82. install : $(PROJECT)
  83.     copy $(PROJECT) printers:
  84.  
  85. ###############################################################################
  86.  
  87. printertag.o : printertag.asm $(PROJECT)_rev.i config.i
  88. density.o : density.c config.h
  89. dospecial.o : dospecial.c config.h
  90. render.o : render.c config.h
  91. data.o : data.c config.h
  92. locale.o : locale.c devs.h
  93.  
  94. ###############################################################################
  95.  
  96. $(PROJECT)_rev.i :
  97.     smake version
  98.  
  99. ###############################################################################
  100.  
  101. clean:
  102.     -delete \#?.o $(PROJECT)(%|.debug)
  103.  
  104. realclean: clean
  105.     -delete tags tagfiles \#?.map all
  106.  
  107. ###############################################################################
  108.  
  109. mkid:
  110.     mkid -v \#?.(c|h|a|asm|i)
  111.  
  112. update:
  113.     mkid -v -u
  114.  
  115. version:
  116.     bumprev $(VERSION) $(PROJECT)
  117.  
  118. ###############################################################################
  119.  
  120. checkin: rcs
  121.     ci -M -d -l$(VERSION) -m. -t-. $(SOURCE)
  122.  
  123. freeze: rcs
  124.     rcs -q -nV$(VERSION)_`type $(PROJECT)_rev.rev`: $(SOURCE)
  125.  
  126. unlock: rcs
  127.     rcs -u $(SOURCE)
  128.  
  129. lock: rcs
  130.     rcs -l $(SOURCE)
  131.  
  132. rcs:
  133.     makedir $@
  134.